<?php


class Sherpa_MetanavigationController extends WSB_Xtension_Extension
{

	/**
	 * @return string
	 */
	public function renderForBackend()
	{
		return get_class($this);
	}

	/**
	 * Index Action
	 */
	public function indexAction()
	{
		$auth = WSB_Auth_Frontend::getInstance();
		if($auth->hasIdentity()) {
			$feuser = $auth->getIdentity();
			$this->_view->username = $feuser->username;
			$this->_view->firstname = $feuser->firstname;
			$this->_view->lastname = $feuser->lastname;
		}
		$this->_view->hasIdentity = $auth->hasIdentity();
		$this->addContent($this->_view->render('metanavigation/index.phtml'));
	}

}
